package com.example.lotterysystem.service.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * Created with IntelliJ IDEA.
 * Description: 活动人员状态
 * User: Spider-Man
 * Date: 2025-09-12
 * Time: 15:13
 */
@AllArgsConstructor
@Getter
public enum ActivityUserStatusEnum {
    INIT(1,"初始化"),

    COMPLETED(2,"人员已被抽取");
    private final Integer code;

    private final String message;

    public static ActivityUserStatusEnum forName(String name) {
        for(ActivityUserStatusEnum activityUserStatusEnum :ActivityUserStatusEnum.values()) {
            if(activityUserStatusEnum.name().equalsIgnoreCase(name)) {
                return activityUserStatusEnum;
            }
        }
        return null;
    }
}
